<?php
  require "../../system/framework.php";  
/*require_once("../../system/api/simplehtmldom/simple_html_dom.php");


$project = new project();
$project->compileContent();*/



foreach (db::getData("content") as $contentData)
    {
    if (file::fileExists($contentData['content_filename'], true))
        {


        // Content erstellen
        $content=new content();
        $text=file::readTextFile($contentData['content_filename'], true);
        $text=re::getHtmlTagValue("body", $text);
        $content->text=$text;
        $content->contentId=$contentData['id'];
        $content->createContentFile=false;
        $content->createContent();
        }
    }







?>
